โ– humdrum codex / glint v1.0.2
license AGPL-3.0
2.4 KB raw
id
TASK-012
title
Editing polish bundle
status
๐Ÿ Done
assignee
created_date
2026-06-29 16:26
updated_date
2026-06-30 00:11
labels
feature, release-1
dependencies
priority
low
ordinal
12000

Description

Release 1 (can be split). Smaller niceties: (a) auto-close pairs โ€” typing '[','(','backtick' inserts the closing char with the cursor inside; typing the closing char over an auto-inserted one steps over it; (b) smart Home โ€” first press goes to the first non-whitespace column, second to column 0; (c) go-to-line command/prompt; (d) remember cursor position per file within a session (reopening returns to it); (e) paste a URL over a selection -> selection.

Acceptance Criteria

Implementation Plan

Editor-level (TDD in internal/editor):

Implementation Notes

Editor (TDD, internal/editor/polish_test.go): auto-close pairs () [] backtick via typeRune in dispatch (no-selection single rune), insertPair reused; closer steps over a matching char to the right. Smart Home toggles first-non-blank <-> col 0. Added GotoLine + SetCursor (clamped). App (TDD, internal/app/polish_test.go): Ctrl+L -> ModeGotoLine prompt (digits-only, Enter jumps, Esc cancels); per-file cursor memory map restored on Load; pasteText wraps a URL pasted over a selection as sel, else verbatim. Docs: help.go EDITING section + Ctrl+L; README keys. Full suite + vet green.